import DashboardLayout from "../layout/dashboard/DashboardLayout.vue";
// GeneralViews
import Recommend from "../pages/Recommend.vue";
import DocDetail from "../pages/DocDetail.vue";
import VideoPage from "../pages/VideoPage.vue";
import videoDetail from "../pages/videoDetail.vue"
import CourseDetail from "../pages/CourseDetail.vue";
import CourseDetail_Blank from "../pages/CourseDetail_Blank.vue";

const routes = [
  {
    path: "/detail/course/p/13",
    component: VideoPage,
  },
  {
    path: "/",
    component: DashboardLayout,
    redirect: "/recommend/284545e8a13078c28a8074df465030ddadb3d759100deeb6a9cac26d5e134dad",
    children: [
      {
        path: "recommend/284545e8a13078c28a8074df465030ddadb3d759100deeb6a9cac26d5e134dad",
        name: "推荐首页",
        component: Recommend
      },
      {
        path: "detail/course/:id/e678aced469cfc7fbfcae71fd64d721c463143f93a7849a51476fa1005cf71df",
        name: "课程详情",
        component: CourseDetail
      },
      {
        path: "detail/course/:id/*",
        name: "视频详情",
        component: CourseDetail_Blank
      },
      {
        path: "detail/doc/:id?",
        name: "文档详情",
        component: DocDetail
      },
      // {
      //   path: "assessment/:id",
      //   name: "课程评价",
      //   component: Assessment,
      //   props: true
      // },
      {
        path: "/video/p/:zhangjie/:shipin",
        component: videoDetail,
      },
      {
        path: "/video"+"/video/:zhangjie/:shipin",
        component: videoDetail,
      },
    ]
  },

  {
    path: "*",
    redirect: "/recommend/284545e8a13078c28a8074df465030ddadb3d759100deeb6a9cac26d5e134dad"
  },
];

export default routes;
